<template>
  <div class="wrap">
    <div class="menu">
      <div class="item" v-for="(item,index) in navData" :key="index">
        <router-link :to="item.path">{{item.title}}</router-link>
      </div>
    </div>
    <div class="content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import {navData} from '@/untils/nav.js'
export default {
  name: "App",
  components: {},
  data(){
    return {
      navData
    }
  }
};
</script>

<style scoped>
.wrap {
  display: flex;
  flex-flow: row nowrap;
}
.menu {
  margin: 40px;
  width: 300px;
  display: flex;
  flex-flow: column;
  
}
.item {
  padding: 10px;
}
.content {
}
</style>